<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaTradeFastCreateOrderParam/ComAlibabaOceanOpenplatformBizTradeParamPlace.class.php');
include_once ('AlibabaTradeFastCreateOrderParam/ComAlibabaOceanOpenplatformBizTradeParamPlace.class.php');
include_once ('AlibabaTradeFastCreateOrderParam/ComAlibabaOceanOpenplatformBizTradeParamPlace.class.php');
include_once ('AlibabaTradeFastCreateOrderParam/ComAlibabaOceanOpenplatformBizTradeParamPlace.class.php');

class ComAlibabaOceanOpenplatformBizTradeParamOutAddress extends SDKDomain {

       	
    private $province;
    
        /**
    * @return 省
    */
        public function getProvince() {
        return $this->province;
    }
    
    /**
     * 设置省     
     * @param ComAlibabaOceanOpenplatformBizTradeParamPlace $province     
     * 参数示例：<pre>{"name":"四川省","code":"51000"}</pre>     
     * 此参数必填     */
    public function setProvince(ComAlibabaOceanOpenplatformBizTradeParamPlace $province) {
        $this->province = $province;
    }
    
        	
    private $city;
    
        /**
    * @return 市
    */
        public function getCity() {
        return $this->city;
    }
    
    /**
     * 设置市     
     * @param ComAlibabaOceanOpenplatformBizTradeParamPlace $city     
     * 参数示例：<pre>{}</pre>     
     * 此参数必填     */
    public function setCity(ComAlibabaOceanOpenplatformBizTradeParamPlace $city) {
        $this->city = $city;
    }
    
        	
    private $area;
    
        /**
    * @return 区
    */
        public function getArea() {
        return $this->area;
    }
    
    /**
     * 设置区     
     * @param ComAlibabaOceanOpenplatformBizTradeParamPlace $area     
     * 参数示例：<pre>{}</pre>     
     * 此参数必填     */
    public function setArea(ComAlibabaOceanOpenplatformBizTradeParamPlace $area) {
        $this->area = $area;
    }
    
        	
    private $town;
    
        /**
    * @return 镇/街道
    */
        public function getTown() {
        return $this->town;
    }
    
    /**
     * 设置镇/街道     
     * @param ComAlibabaOceanOpenplatformBizTradeParamPlace $town     
     * 参数示例：<pre>{}</pre>     
     * 此参数必填     */
    public function setTown(ComAlibabaOceanOpenplatformBizTradeParamPlace $town) {
        $this->town = $town;
    }
    
        	
    private $address;
    
        /**
    * @return 详细地址
    */
        public function getAddress() {
        return $this->address;
    }
    
    /**
     * 设置详细地址     
     * @param String $address     
     * 参数示例：<pre>网商路699号</pre>     
     * 此参数必填     */
    public function setAddress( $address) {
        $this->address = $address;
    }
    
        	
    private $postCode;
    
        /**
    * @return 邮编
    */
        public function getPostCode() {
        return $this->postCode;
    }
    
    /**
     * 设置邮编     
     * @param String $postCode     
     * 参数示例：<pre>511304</pre>     
     * 此参数必填     */
    public function setPostCode( $postCode) {
        $this->postCode = $postCode;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "province", $this->stdResult )) {
    				$provinceResult=$this->stdResult->{"province"};
    				$this->province = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    				$this->province->setStdResult ( $provinceResult);
    			}
    			    		    				    			    			if (array_key_exists ( "city", $this->stdResult )) {
    				$cityResult=$this->stdResult->{"city"};
    				$this->city = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    				$this->city->setStdResult ( $cityResult);
    			}
    			    		    				    			    			if (array_key_exists ( "area", $this->stdResult )) {
    				$areaResult=$this->stdResult->{"area"};
    				$this->area = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    				$this->area->setStdResult ( $areaResult);
    			}
    			    		    				    			    			if (array_key_exists ( "town", $this->stdResult )) {
    				$townResult=$this->stdResult->{"town"};
    				$this->town = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    				$this->town->setStdResult ( $townResult);
    			}
    			    		    				    			    			if (array_key_exists ( "address", $this->stdResult )) {
    				$this->address = $this->stdResult->{"address"};
    			}
    			    		    				    			    			if (array_key_exists ( "postCode", $this->stdResult )) {
    				$this->postCode = $this->stdResult->{"postCode"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    		if (array_key_exists ( "province", $this->arrayResult )) {
    		$provinceResult=$arrayResult['province'];
    			    			$this->province = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    			    			$this->province->setStdResult ( $provinceResult);
    		}
    		    	    			    		    		if (array_key_exists ( "city", $this->arrayResult )) {
    		$cityResult=$arrayResult['city'];
    			    			$this->city = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    			    			$this->city->setStdResult ( $cityResult);
    		}
    		    	    			    		    		if (array_key_exists ( "area", $this->arrayResult )) {
    		$areaResult=$arrayResult['area'];
    			    			$this->area = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    			    			$this->area->setStdResult ( $areaResult);
    		}
    		    	    			    		    		if (array_key_exists ( "town", $this->arrayResult )) {
    		$townResult=$arrayResult['town'];
    			    			$this->town = new ComAlibabaOceanOpenplatformBizTradeParamPlace();
    			    			$this->town->setStdResult ( $townResult);
    		}
    		    	    			    		    			if (array_key_exists ( "address", $this->arrayResult )) {
    			$this->address = $arrayResult['address'];
    			}
    		    	    			    		    			if (array_key_exists ( "postCode", $this->arrayResult )) {
    			$this->postCode = $arrayResult['postCode'];
    			}
    		    	    		}
 
   
}
?>